package com.xy.mapper.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xy.model.condition.system.UserInfoCondition;
import com.xy.model.po.system.UserInfoPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfoPO> {

    /**
     * 查询用户列表
     *
     * @param condition
     * @return
     */
    Integer countList(UserInfoCondition condition);

    /**
     * 查询用户列表
     *
     * @param condition
     * @return
     */
    List<UserInfoPO> findList(UserInfoCondition condition);

    /**
     * 根据手机号精确匹配
     *
     * @param phone
     * @return
     */
    UserInfoPO findByPhone(String phone);
}
